<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统设置-<?php echo $cfg_sitename."-".$cfg_sysversion;?></title>
<meta property="xn:admins" content="583870616"/>
<meta property="wb:webmaster" content="ye-shi-li@qq.com">
<link href="templets/css/admin_css.css" rel="stylesheet" type="text/css" />
</head>
<script>
function checksubmit()
{
if (document.form1.cfg_sitename.value=="") {
	window.alert("站点名称不能为空！！");
	document.form1.cfg_sitename.focus();		
	 return (false);
	}
if (document.form1.cfg_httpurl.value=="") {
	window.alert("站点域名不能为空！！");
	document.form1.cfg_httpurl.focus();		
	 return (false);
	}
if (document.form1.cfg_templatesdir.value=="") {
	window.alert("模版目录！！");
	document.form1.cfg_templatesdir.focus();		
	 return (false);
	}
	return true;
}
</script>
<body>
<table width="98%" border="0" cellpadding="3" cellspacing="1" class="ye">
  <form name="form1" method="post" action="?act=update"  onSubmit="return checksubmit();">
  <tr>
    <td height="24" colspan="2" bgcolor="#555555"><font color="#FFFFFF">&nbsp;<span class="Main_Title"><strong>系统全局设定</strong></span></font></td>
  </tr>
  <tr>
    <td height="24" colspan="2" align="left" valign="middle" bgcolor="#f1f1f1" class="sys_title">　　<span class="hong">站点基本信息</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1"> 　站点名称：</td>
    <td width="1101" height="24" bgcolor="#f1f1f1"><input name="cfg_sitename" type="text" class="yeshili" id="cfg_sitename"  value="<?php echo $cfg_sitename;?>"/>
      <span class="hong">*</span> <span class="hui">系统名称，例如：Luocms</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">　域名：</td>
    <td width="1101" height="24" bgcolor="#f1f1f1"><input name="cfg_httpurl" type="text" class="yeshili" id="cfg_httpurl" value="<?php echo $cfg_httpurl;?>"/>
    <span class="hong">*</span> <span class="hui">域名，例如：baidu.com,或者http://baidu.com</span></td>
  </tr>
  <tr>
    <td height="24" align="right" valign="middle" bgcolor="#f1f1f1">模版路径：</td>
    <td height="24" bgcolor="#f1f1f1"><input name="cfg_templatesdir" type="text" class="yeshili" id="cfg_templatesdir" value="<?php echo $temp = ($cfg_templatesdir == '') ? "default" : $cfg_templatesdir;?>" />
      <span class="hong">*</span> <span class="hui"> 当前模版目录</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">是否启用日记：</td>
    <td height="24" bgcolor="#f1f1f1"><input type="radio" value="Y" name="cfg_record" <?php if($cfg_record=='Y') echo "checked";?>>是 <input type="radio" value="N" name="cfg_record" <?php if($cfg_record=='N') echo "checked";?>>否  <span class="hong">*</span>  <span class="hui">是否启用管理日记</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">是否启用smtp：</td>
    <td height="24" bgcolor="#f1f1f1"><input type="radio" value="Y" name="cfg_sendmail_bysmtp" <?php if($cfg_sendmail_bysmtp=='Y') echo "checked";?>>是 <input type="radio" value="N" name="cfg_sendmail_bysmtp" <?php if($cfg_sendmail_bysmtp=='N') echo "checked";?>>否  <span class="hong">*</span>  <span class="hui">是否启用smtp方式发送邮件</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">smtp服务器：</td>
    <td height="24" bgcolor="#f1f1f1"><input name="cfg_smtp_server" type="text" class="yeshili" id="cfg_smtp_server" value="<?php echo $cfg_smtp_server;?>" /> <span class="hong">*</span>  <span class="hui">如smtp.qq.com</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">smtp服务器端口：</td>
    <td height="24" bgcolor="#f1f1f1"><input name="cfg_smtp_port" type="text" class="yeshili" id="cfg_smtp_port" value="<?php echo $cfg_smtp_port;?>" /> <span class="hong">*</span>  <span class="hui">一般默认25端口</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">管理员用户邮箱：</td>
    <td height="24" bgcolor="#f1f1f1"><input name="cfg_smtp_email" type="text" class="yeshili" id="cfg_smtp_email" value="<?php echo $cfg_smtp_email;?>" /> <span class="hong">*</span>  <span class="hui">SMTP服务器的用户邮箱 例如：583870616@qq.com</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">管理员用户账户：</td>
    <td height="24" bgcolor="#f1f1f1"><input name="cfg_smtp_user" type="text" class="yeshili" id="cfg_smtp_user" value="<?php echo $cfg_smtp_user;?>" /> <span class="hong">*</span>  <span class="hui">SMTP服务器的用户帐号 例如：583870616@qq.com</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">管理员用户密码：</td>
    <td height="24" bgcolor="#f1f1f1"><input name="cfg_smtp_pass" type="text" class="yeshili" id="cfg_smtp_pass" value="<?php echo $cfg_smtp_pass;?>" /> <span class="hong">*</span>  <span class="hui">SMTP服务器的用户密码 请填写登陆时的密码</span></td>
  </tr>
  <tr>
    <td width="150" height="24" align="right" valign="middle" bgcolor="#f1f1f1">&nbsp;</td>
    <td width="1101" height="24" bgcolor="#f1f1f1"><input name="button" type="submit" class="button" id="button" value="确定"/></td>
  </tr>
  </form>
</table>
</body>
</html>
